package com.bw.controller;

import com.bw.service.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RuleController {
    @Autowired
    private RuleService ruleService;

    //接口规则列表
    @GetMapping("rulelist")
    List rulelist(@RequestParam("mohu")String mohu){
        return ruleService.rulelist(mohu);
    }
    @PostMapping("tingyong")
    void tingyong(@RequestParam("aa") String aa){
        ruleService.tingyong(aa);
    }
    @PostMapping("qiyong")
    void qiyong(@RequestParam("aa") String aa){
        ruleService.qiyong(aa);
    }
}
